package com.demo.agent.manager;

import java.rmi.registry.Registry;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: huangjiazhen
 * @create: 2023/11/22 12:09
 * @description:
 **/
public class RegistryManager {
    private static Map<Integer, Registry> MAPPING = new HashMap<>();

    public static void save(Integer key, Registry value) {
        MAPPING.put(key, value);
    }

    public static Registry getValue(Integer key) {
        return MAPPING.get(key);
    }
}
